package org.pp.service.impl;

import org.pp.entity.PpGoodsSku;
import org.pp.mapper.PpGoodsSkuMapper;
import org.pp.service.IPpGoodsSkuService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.pp.vo.MiniappOrderItemVo;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 具体商品sku 服务实现类
 * </p>
 *
 * @author haima
 * @since 2024-06-09
 */
@Service
public class PpGoodsSkuServiceImpl extends ServiceImpl<PpGoodsSkuMapper, PpGoodsSku> implements IPpGoodsSkuService {


    @Override
    public List<MiniappOrderItemVo> listOrderItemByCartId(List<Long> cartIds) {
        return baseMapper.listOrderItemByCartId(cartIds);
    }

    @Override
    public boolean cutStock(Long cartId) {
        return baseMapper.cutStock(cartId);
    }
}
